import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/',
  name: 'sys',
  meta,
  redirect: { name: 'sys' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'user-manage', name: `${pre}user`, component: () => import('@/pages/admin/user'), meta: { ...meta, title: '用户管理' } },
    { path: 'role-manage', name: `${pre}role`, component: () => import('@/pages/admin/user'), meta: { ...meta, title: '角色管理' } },
    { path: 'role-goods', name: `${pre}goods`, component: () => import('@/pages/admin/user'), meta: { ...meta, title: '商品管理' } }
  ])('sys-')
}
